/// ****************************************************************************
/// Author:	        Robin Zhu
/// Create Date:	2011-11-1
/// Purpose: 		数据访问上下文设置集合类文件
/// ****************************************************************************
/// Modify By		Date			Remark
/// ****************************************************************************

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace RB.DataAccess.Configuration
{
    /// <summary>
    /// 数据访问上下文设置集合类
    /// </summary>
    public class DataContextConfigCollection : ConfigurationElementCollection
    {
        protected override ConfigurationElement CreateNewElement()
        {
            return new DataContextConfigElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((DataContextConfigElement)element).Name;
        }

        public new DataContextConfigElement this[string name]
        {
            get
            {
                var result = base.BaseGet(name);
                return (DataContextConfigElement)result;
            }
        }
    }
}
